package com.atguigu.team.domain;

import com.atguigu.team.service.Status;

/**
 * @author zhouzhou
 * @version 1.0
 * @description: TODO
 * @date 2025/2/15 21:50
 */

public class Programmer extends Employee{
        private int memberld;//用来记录i成员加入开发团队中的ID.
        private Status status= Status.FREE;//表示成员的状态.
        private Equipment equipment;//表示成员领用的设备.

        public Programmer() {
        }

        public  Programmer(int id, String name, int age, double salary,   Equipment equipment) {
                super(id, name, age, salary);
                this.equipment = equipment;
        }

        public int getMemberld() {
                return memberld;
        }

        public void setMemberld(int memberld) {
                this.memberld = memberld;
        }

        public Status getStatus() {
                return status;
        }

        public void setStatus(Status status) {
                this.status = status;
        }

        public Equipment getEquipment() {
                return equipment;
        }

        public void setEquipment(Equipment equipment) {
                this.equipment = equipment;
        }
        @Override
        public String toString() {
                return getDetails()+"\t程序员"+ "\t" + status + "\t\t\t\t\t\t" + equipment.getDescription();
        }

        public String getBasicDetailsForTeam(){
                return getId()+"/"+getMemberld()+"\t"+getName()+"\t"+getAge()+"\t\t"+getSalary()+"\t";
        }
        public String getDetailsForTeam(){
                return getBasicDetailsForTeam()+"程序员";
        }
}
